//boss https://www.zhipin.com/job_detail/?query=java%E5%BC%80%E5%8F%91&city=100010000&industry=&position=
var nodeList = document.querySelector("#filter-box > div > div.condition-box > dl > dd").querySelectorAll("a[href]");
var elements = Array.from(nodeList);
return elements.filter(function(o){return o.href != null && o.href.startsWith("https://") && o.innerText != '全国';}).map(function(o){return {"href":o.href,"title":o.innerText}});


//city
var nodeList = document.querySelector("#filter-box > div > div.condition-box > dl.condition-district.show-condition-district").querySelectorAll("a[href]");
var elements = Array.from(nodeList);
return elements.filter(function(o){return o.href != null && o.href.startsWith("https://") && o.innerText != '不限';}).map(function(o){return {"href":o.href,"title":o.innerText}});

//page list
var href = document.querySelector("#main > div > div.job-list > div.page").querySelector("a[href]").href;
var array = [];
for(var i = 1; i <= 10; i++){
    var newHref = href.replace(/page=\d+/gi, "page="+i);
    array.push(newHref);
}
return array;


var nodeList = document.querySelector("#main > div > div.job-list > ul").querySelectorAll(".job-primary");
var elements = Array.from(nodeList);
var result =  elements.map(function (o) {
    var item = {};
    var job = o.querySelector(".job-name");
    item["href"] = job.querySelector("a[href]").href;
    item["jobTitle"] = o.querySelector(".job-title").innerText;
    item["jobLimit"] = o.querySelector(".job-limit").innerText;
    item["company"] = o.querySelector(".company-text").innerText;
    item["tags"] = o.querySelector(".tags").innerText;
    item["infoDesc"] = o.querySelector(".info-desc").innerText;
    return item;
});
console.log(result)


var nodeList=document.querySelector("#main > div > div.job-list > ul").querySelectorAll(".job-primary");var elements=Array.from(nodeList);var result=elements.map(function(o){var item={};var job=o.querySelector(".job-name");item["href"]=job.querySelector("a[href]").href;item["jobTitle"]=o.querySelector(".job-title").innerText;item["jobLimit"]=o.querySelector(".job-limit").innerText;item["company"]=o.querySelector(".company-text").innerText;item["tags"]=o.querySelector(".tags").innerText;item["infoDesc"]=o.querySelector(".info-desc").innerText;return item});return resultt;


var item = {};
item["jobDesc"] = document.querySelector("#main > div.job-box > div > div.job-detail > div.detail-content").innerText;
item["companyDetail"] = document.querySelector("#main > div.job-box > div > div.job-detail > div.detail-content > div.job-sec.company-info > div").innerText;
item["comppanyInfo"] = document.querySelector("#main > div.job-box > div > div.job-detail > div.detail-content > div:nth-child(5)").innerText;
item["companyAddress"] = document.querySelector("#main > div.job-box > div > div.job-detail > div.detail-content > div:nth-child(6) > div > div.location-address").innerText;
return item;
console.log(item);


var item={};item["jobDesc"]=document.querySelector("#main > div.job-box > div > div.job-detail > div.detail-content").innerText;item["companyDetail"]=document.querySelector("#main > div.job-box > div > div.job-detail > div.detail-content > div.job-sec.company-info > div").innerText;item["comppanyInfo"]=document.querySelector("#main > div.job-box > div > div.job-detail > div.detail-content > div:nth-child(5)").innerText;item["companyAddress"]=document.querySelector("#main > div.job-box > div > div.job-detail > div.detail-content > div:nth-child(6) > div > div.location-address").innerText;return item;



return document.querySelector("#main > .error-content") != null;


#filter-box > div > div.condition-box > dl > dd > a:nth-child(4)


#main > div.job-box > div > div.job-detail > div.detail-content
